import click

from service.redis import RedisOperate
from service.user_service import User_service

@click.group()
def cli():
    pass


@cli.command()
def dealdata():
    '''
    处理redis数据
    :return:
    '''
    click.echo('deal the data')
    redis = RedisOperate()
    redis.setdata()


@cli.command()
def inittest():
    '''
    测试命令行
    :return:
    '''
    click.echo('测试命令行')
    user = User_service()
    user.getuser()
